import {Component} from '@angular/core';
import {App, IonicPage, NavController, NavParams, ViewController} from 'ionic-angular';
import {LocalStorage} from "../../utils/localstorage.utils";

/**
 * Generated class for the SystemMessageConfirmPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-system-message-confirm',
  templateUrl: 'system-message-confirm.html',
})
export class SystemMessageConfirmPage {
  message: any={};

  constructor(public navCtrl: NavController,
              public navParams: NavParams,
              public ls: LocalStorage,
              private viewCtrl: ViewController) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad SystemMessageConfirmPage');
    this.message = this.ls.getObject('cmessage');
  }

  dismiss() {
    this.viewCtrl.dismiss();
  }

}
